package com.wk.database;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.wk.database.entity.definition.Column;
import com.wk.database.entity.definition.ColumnType;
import com.wk.database.entity.definition.PrimaryKey;
import com.wk.database.entity.definition.Table;

@Table("t_business_production_plan_management")
public class FinishedTask {
	public FinishedTask(int id) {
		this.id = id;
		state = TaskState.FINISHED;
		finishTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
	}

	@PrimaryKey
	@Column(name = "id", type = ColumnType.INT)
	public int id;

	@Column(name = "production_status", type = ColumnType.STRING)
	public String state;

	@Column(name = "production_end_time", type = ColumnType.STRING)
	public String finishTime;
}
